import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/file7_token_entity.dart';

File7TokenEntity $File7TokenEntityFromJson(Map<String, dynamic> json) {
	final File7TokenEntity file7TokenEntity = File7TokenEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		file7TokenEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		file7TokenEntity.code = code;
	}
	final File7TokenData? data = jsonConvert.convert<File7TokenData>(json['data']);
	if (data != null) {
		file7TokenEntity.data = data;
	}
	return file7TokenEntity;
}

Map<String, dynamic> $File7TokenEntityToJson(File7TokenEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] = entity.data?.toJson();
	return data;
}

File7TokenData $File7TokenDataFromJson(Map<String, dynamic> json) {
	final File7TokenData file7TokenData = File7TokenData();
	final String? domain = jsonConvert.convert<String>(json['domain']);
	if (domain != null) {
		file7TokenData.domain = domain;
	}
	final String? accessToken = jsonConvert.convert<String>(json['accessToken']);
	if (accessToken != null) {
		file7TokenData.accessToken = accessToken;
	}
	final String? picStyle = jsonConvert.convert<String>(json['picStyle']);
	if (picStyle != null) {
		file7TokenData.picStyle = picStyle;
	}
	return file7TokenData;
}

Map<String, dynamic> $File7TokenDataToJson(File7TokenData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['domain'] = entity.domain;
	data['accessToken'] = entity.accessToken;
	data['picStyle'] = entity.picStyle;
	return data;
}